#pragma once
#include <string>
#include <iostream>
using namespace std;
class Result
{
public:
	Result(void){}
	~Result(void);
	void SetTestName(string tName){testName = tName;}
	void SetResult(string r){result = r;}
	string GetTestName(){return testName;}
	string GetResult(){return result;}
	void Read()
	{
		cout << "Ange test namnet: ";
		getline(cin, testName);
		cout << "Ange resultatet (ig, g, vg): ";
		getline(cin, result);
	}
	friend ostream& operator<<(ostream &out, const Result &r)
	{
		out << "(" << r.testName << "," << r.result << ")" << endl;
		return out;
	}
	friend istream& operator>>(istream &in, Result &r)
	{
		string str;
		getline(in,str,'(');
		getline(in,r.testName,',');
		getline(in,r.result,')');
		getline(in,str);
		return in;
	}
private:
	string testName;
	string result;
};

